﻿<%@ Page Language="C#" MasterPageFile="~/SubForm.Master" AutoEventWireup="true" CodeBehind="EditPreContractInfo.aspx.cs"
    Inherits="PreContractWeb.Task.EditPreContractInfo" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="Microsoft.Web.UI.WebControls" TagPrefix="iewc" %>
<%@ Register Assembly="Microsoft.Web.UI.WebControls" Namespace="Microsoft.Web.UI.WebControls"
    TagPrefix="iewc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript" type="text/javascript">

        function ShowPage(id) {
            var arg = null;

            var top = (screen.height - 450) / 2;
            var left = (screen.width - 800) / 2;
            arg = window.showModalDialog('EditPreContractComments.aspx?id=' + id, '', 'dialogHeight:450px;dialogWidth:800px;dialogTop:' + top + ';dialogLeft:' + left + ';center:Yes;scroll:yes;resizable:yes;status:no;');

            if (arg != null) {
                document.getElementById('<%=returnvalue.ClientID%>').value = arg[0];
                //update pre-contract Risk status


                var oRisk = document.getElementById("ctl00_ContentPlaceHolder1_chkRisk");
                if (oRisk != null) {
                    if (arg[1] == "True") {
                        if (arg[2] == "True")
                            oRisk.checked = true;
                        else
                            oRisk.checked = false;
                    }
                }
            }
        }
        function OnCommentsDelete() {
            var chkList = document.documentElement.getElementsByTagName("INPUT");
            var chk;
            var n = 0;


            for (var i = 0; i < chkList.length; i++) {
                chk = chkList[i];

                if (chk.type == "checkbox" && chk.id.indexOf("_chkSelect") > 0) {
                    //alert(chk.id);
                    if (chk.checked)
                        n++;
                }

            }
            if (n == 0)
                alert("请选择至少一项!\n Please select at least one item!");
            else {
                if (confirm("确认删除所选项吗？\nAre you sure to delete selected item(s)?")) {
                    var btn = document.getElementById("ctl00_ContentPlaceHolder1_btnDelete");
                    btn.removeAttribute("autopostback");
                }
            }


            //&& chk.id!=="chkAll"
        }
    </script>
    <input id="returnvalue" type="hidden" name="returnvalue" runat="server" />
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td align="left" height="50" valign="middle">
                <div id="divTitle" name="divTitle">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" height="45">
                        <tr>
                            <td rowspan="3" width="50">
                                <img class="ContentTitle" border="0" />
                            </td>
                            <td colspan="2" height="5">
                            </td>
                        </tr>
                        <tr>
                            <td width="200" height="30" class="ContentTitle">
                                预合同信息(Pre-Contract Information)
                            </td>
                        </tr>
                        <tr>
                            <td height="10" valign="top">
                                <img class="ContentTitle" imgsource="../Images/BG-SubMenuTitle-A-" imgtype=".png"
                                    width="100%" height="3" />
                            </td>
                            <td height="5">
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" height="45">
                    <tr>
                        <td height="30" align="right">
                            <!--整体按钮-->
                            <asp:Button ID="btnSave" CssClass="bgButton" runat="server" Text="保存 (Save)" OnClick="btnSave_Click"
                                OnClientClick="return confirm('您确定要保存吗?\nAre you sure to save?');" />
                            <asp:Button ID="btnCancel" CssClass="bgButton" runat="server" Text="取消 (Cancel)"
                                OnClientClick="window.close(); " />&nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td width="100%" height="100%" valign="middle" align="center" colspan="2">
                <%--<div id="divContent" name="divConten" style="overflow-y: auto;">--%>
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="panel_header">
                            <!--标题-->
                            预合同信息(Pre-Contract Information)
                            <!--标题-->
                        </td>
                    </tr>
                    <tr>
                        <td class="panel_body">
                            <!--Panel Body-->
                            <table style="width: 100%">
                                <tr>
                                    <td>
                                        <asp:Panel runat="server" ID="pnlEdit" Width="100%">
                                            <table style="width: 100%; height: 100%">
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        预合同编号:<br />
                                                        Pre-Contract #:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtPreContractNo" runat="server" CssClass="cssText" allowempty="false"
                                                            Width="70%"></asp:TextBox><b class="required">*</b>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        状态:<br />
                                                        Status:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:DropDownList ID="ddlStatus" runat="server" allowempty="false">
                                                        </asp:DropDownList>
                                                        <asp:TextBox ID="txtPreContractID" runat="server" Style="visibility: hidden"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        合同类型:<br />
                                                        Category:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:DropDownList ID="ddlType" runat="server">
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        合同分类:<br />
                                                        Contract Adjust:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:DropDownList ID="ddlContractAdjust" runat="server">
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        事业部:<br />
                                                        PU:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:DropDownList ID="ddlBD" runat="server">
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        BG:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtBG" runat="server" CssClass="cssText" allowempty="true" Width="50%"
                                                            ReadOnly="true"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        省:<br />
                                                        Province:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:DropDownList ID="ddlProvince" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlProvince_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        CAT:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:DropDownList ID="ddlCAT" runat="server">
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        大区:<br />
                                                        Cluster:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:DropDownList ID="ddlCluster" runat="server">
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        合同名称:<br />
                                                        Contract Name:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtContractName" runat="server" CssClass="cssText" allowempty="false"
                                                            Width="90%"></asp:TextBox><b class="required">*</b>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        产品名称:<br />
                                                        Product:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtProduct" runat="server" CssClass="cssText" allowempty="false"
                                                            Width="90%"></asp:TextBox><b class="required">*</b>
                                                        <asp:TextBox ID="txtProductID" runat="server" Style="visibility: hidden" Width="1px"></asp:TextBox>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        Orion 编号:<br />
                                                        Orion #:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtOrionNo" runat="server" CssClass="cssText" allowempty="true"
                                                            Width="50%"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        客户名称:<br />
                                                        Customer Name:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtCustomerName" runat="server" CssClass="cssText" allowempty="false"
                                                            Width="90%"></asp:TextBox><b class="required">*</b>
                                                    </td>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        Cygnus承诺金额:<br />
                                                        Cygnus RMB:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtCEWPromised" runat="server" CssClass="cssText" checkmaster="checkNumber"
                                                            decimal="2" min="0" Max="99999999999"></asp:TextBox><b class="required">*</b>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        Cygnus剩余金额:<br />
                                                        Cygnus Spare RMB:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtSparePrice" runat="server" CssClass="cssText" checkmaster="checkNumber"
                                                            decimal="2" min="0" Max="99999999999"></asp:TextBox><strong><span style="color: #ff0000">*</span></strong>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        Orion金额RMB:<br />
                                                        Orion RMB:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtOrionPrice" runat="server" CssClass="cssText" checkmaster="checkNumber"
                                                            decimal="2" min="0" Max="99999999999"></asp:TextBox><strong><span style="color: #ff0000">*</span></strong>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        Cygnus最终金额:<br />
                                                        Sales RMB:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtSalesPrice" runat="server" CssClass="cssText" checkmaster="checkNumber"
                                                            decimal="2" min="0" Max="99999999999" allowempty="true"></asp:TextBox>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        正式合同号:<br />
                                                        Advanced Contract:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <b class="required">
                                                            <asp:TextBox ID="txtAdvancedContract" runat="server" CssClass="cssText" allowempty="true"
                                                                Width="50%"></asp:TextBox></b>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        Cygnus转正时间:<br />
                                                        Cygnus Date:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtPromisedDate" runat="server" CssClass="cssPopdate" checkmaster="checkDate"
                                                            allowempty="false" IconID="DateIcon03"></asp:TextBox><img id="DateIcon03" class="DateIcon"
                                                                src="../Images/calendar_18.gif" /><b class="required">*</b>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        Orion转正时间:<br />
                                                        Orion Date:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtSignDue" runat="server" CssClass="cssPopdate" checkmaster="checkDate"
                                                            allowempty="false" IconID="DateIcon01"></asp:TextBox><img id="DateIcon01" class="DateIcon"
                                                                src="../Images/calendar_18.gif" /><b class="required">*</b>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        最终转正时间:<br />
                                                        Final Date:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtSignActual" runat="server" CssClass="cssPopdate" checkmaster="checkDate"
                                                            allowempty="true" IconID="DateIcon02"></asp:TextBox><img id="DateIcon02" class="DateIcon"
                                                                src="../Images/calendar_18.gif" />
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        ACR 编号:<br />
                                                        ACR No:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtARCNO" runat="server" CssClass="cssText" allowempty="true" Width="50%"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        到货状态:<br />
                                                        Delivered:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:CheckBox ID="chkDelivery" runat="server" />
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        发货率%:<br />
                                                        Delivery Percentage%:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtDeliveryPercentage" runat="server" CssClass="cssText" checkmaster="checkNumber"
                                                            allowempty="true" decimal="2" min="0" Max="100"></asp:TextBox>
                                                        <asp:CheckBox ID="chkMustModifyDR" runat="server" Text="强制修改发货率" Visible="False" />
                                                        <asp:Label runat="server" ID="lblDeliveryPercentage" Visible="false"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        发货时间:<br />
                                                        Delivery Date:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtDeliveryDate" runat="server" allowempty="true" checkmaster="checkDate"
                                                            CssClass="cssPopdate" IconID="DateIcon6"></asp:TextBox>
                                                        <img id="DateIcon6" class="DateIcon" src="../Images/calendar_18.gif" />
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        发货预测:<br />
                                                        Delivery Plan:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtDeliveryPlan" runat="server" allowempty="true" CssClass="cssText"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        到货时间:<br />
                                                        AOG Date:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtAOGDate" runat="server" allowempty="true" checkmaster="checkDate"
                                                            CssClass="cssPopdate" IconID="DateIcon7"></asp:TextBox>
                                                        <img id="DateIcon7" class="DateIcon" src="../Images/calendar_18.gif" />
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        试用到期时间:<br />
                                                        Deadline of Trying
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtDeadlineOfTrying" runat="server" allowempty="true" checkmaster="checkDate"
                                                            CssClass="cssPopdate" IconID="DateIconDeadlineOfTrying" onkeypress="event.returnValue=false;"></asp:TextBox>
                                                        <img id="DateIconDeadlineOfTrying" class="DateIcon" alt="" src="../Images/calendar_18.gif" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        订单确认时间:<br />
                                                        ERP Accept:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtERPRecvd" runat="server" CssClass="cssPopdate" checkmaster="checkDate"
                                                            allowempty="false" IconID="DateIcon04"></asp:TextBox><img id="DateIcon04" class="DateIcon"
                                                                src="../Images/calendar_18.gif" /><b class="required">*</b>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        黑名单时间:<br />
                                                        Black Date:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtBlackDate" runat="server" CssClass="cssPopdate" checkmaster="checkDate"
                                                            allowempty="true" IconID="DateIcon05"></asp:TextBox><img id="DateIcon05" class="DateIcon"
                                                                src="../Images/calendar_18.gif" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        Cygnus金额ME:<br />
                                                        Cygnus ME:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtCEWME" runat="server" CssClass="cssText" ReadOnly="true" allowempty="true"></asp:TextBox>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        Orion金额ME:<br />
                                                        Orion ME:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtOrionME" runat="server" CssClass="cssText" ReadOnly="true" allowempty="true"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        差额:<br />
                                                        GAP:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtGAP" runat="server" CssClass="cssText" ReadOnly="true" allowempty="true"></asp:TextBox>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        预计转正月份:<br />
                                                        Trade Month:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtTradeMonth" runat="server" CssClass="cssText" allowempty="true"
                                                            ReadOnly="true" Width="50%"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%" valign="middle" runat="server" id="tdCFI">
                                                        库存金额:<br />
                                                        CFI:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtCFI" runat="server" allowempty="true" CssClass="cssText"></asp:TextBox>
                                                    </td>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                    </td>
                                                </tr>
                                                <tr style="display: none">
                                                    <td align="left" style="width: 15%; text-align: left;" valign="middle">
                                                        ASB / Lucent:<br />
                                                        ASB / Lucent:
                                                    </td>
                                                    <td align="left" style="width: 35%;" valign="middle">
                                                        <asp:RadioButton ID="rdoASB" runat="server" Text="ASB" GroupName="ASB" Checked="true" />
                                                        <asp:RadioButton ID="rdoLucent" runat="server" Text="Lucent" GroupName="ASB" />
                                                    </td>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        销售反馈情况:<br />
                                                        Sales Feedback:
                                                    </td>
                                                    <td align="left" colspan="3" valign="middle">
                                                        <asp:TextBox ID="txtCurrentSituation" runat="server" TextMode="MultiLine" Width="98%"
                                                            CssClass="cssText" allowempty="true"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        申请人:<br />
                                                        Apply Name:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtApply" runat="server" CssClass="cssText" allowempty="true" Width="50%"></asp:TextBox>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        申请人邮箱:<br />
                                                        Apply Email:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtApplyEmail" runat="server" CssClass="cssText" allowempty="true"
                                                            Width="90%"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        项目负责人:<br />
                                                        Principal Name:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtPrincipalName" runat="server" CssClass="cssText" allowempty="true"
                                                            Width="50%"></asp:TextBox>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        负责人邮箱:<br />
                                                        Principal Email
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtPrincipalEmail" runat="server" CssClass="cssText" allowempty="true"
                                                            Width="90%"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        存在风险:<br />
                                                        Is Risk:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:CheckBox ID="chkRisk" runat="server" Enabled="false" />
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        更新时间:<br />
                                                        Modified Date:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtModified" runat="server" CssClass="cssPopdate" checkmaster="checkDate"
                                                            allowempty="false" ReadOnly="true"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        是否延期转正:<br />
                                                        Is Delay Time:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:CheckBox ID="chkIsDelay" runat="server" />
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        更新原因:<br />
                                                        Update Reason:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="txtUpdateReason" runat="server" CssClass="cssText" allowempty="true"
                                                            Width="90%"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        转正情况:<br />
                                                        Transfer Information:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle" colspan="3">
                                                        <asp:TextBox ID="txtTransferHisInfo" runat="server" CssClass="cssText" allowempty="true"
                                                            Width="90%"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        终审选项:<br />
                                                        Final Approve Information:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle" colspan="3">
                                                        <asp:CheckBox ID="chkSpecialApprove1" runat="server" Text="正常终审" />
                                                        <asp:CheckBox ID="chkSpecialApprove2" runat="server" Text="PCAT承诺ValueLine" />
                                                        <asp:CheckBox ID="chkSpecialApprove3" runat="server" Text="转正时间长或不确定" />
                                                        <asp:CheckBox ID="chkSpecialApprove4" runat="server" Text="PSO/CAT邮件承诺ValueLine" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                        <asp:Panel ID="pnlView" runat="server" Width="100%">
                                            <table style="width: 100%; height: 100%">
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        预合同编号:<br />
                                                        Pre-Contract #:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="lblPreContractNo" runat="server" CssClass="cssText" allowempty="true"
                                                            ReadOnly="true" Width="70%"></asp:TextBox>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        状态:<br />
                                                        Status:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="lblStatus" runat="server" allowempty="true" CssClass="cssText" ReadOnly="true">
                                                        </asp:TextBox>
                                                        <asp:TextBox ID="lblPreContractID" runat="server" Style="visibility: hidden"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        事业部:<br />
                                                        PU:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="lblBD" runat="server" allowempty="true" CssClass="cssText" ReadOnly="true"></asp:TextBox>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        合同名称:<br />
                                                        Contract Name:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="lblContractName" runat="server" CssClass="cssText" allowempty="true"
                                                            ReadOnly="true" Width="90%"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        省:<br />
                                                        Province:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="lblProvince" runat="server" allowempty="true" CssClass="cssText"
                                                            ReadOnly="true"></asp:TextBox>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        CAT:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="lblCAT" runat="server" allowempty="true" CssClass="cssText" ReadOnly="true"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        Cygnus转正时间:<br />
                                                        Cygnus Date:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="lblPromisedDate" runat="server" CssClass="cssPopdate" checkmaster="checkDate"
                                                            ReadOnly="true" allowempty="true"></asp:TextBox>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        最终转正时间:<br />
                                                        Final Date:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="lblSignActual" runat="server" CssClass="cssPopdate" checkmaster="checkDate"
                                                            ReadOnly="true" allowempty="true"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        订单确认时间:<br />
                                                        ERP Accept:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="lblERPRecvd" runat="server" CssClass="cssPopdate" checkmaster="checkDate"
                                                            ReadOnly="true" allowempty="true"></asp:TextBox>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        到货状态:<br />
                                                        Delivered:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:CheckBox ID="chkDelivery_View" runat="server" Enabled="false" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        Cygnus金额ME:<br />
                                                        Cygnus ME:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="lblCEWME" runat="server" CssClass="cssText" checkmaster="checkNumber"
                                                            allowempty="true" decimal="2" min="0" Max="10000" ReadOnly="true"></asp:TextBox>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        Orion金额ME:<br />
                                                        Orion ME:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="lblOrionME" runat="server" CssClass="cssText" checkmaster="checkNumber"
                                                            allowempty="true" decimal="2" min="0" Max="10000" ReadOnly="true"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        差额:<br />
                                                        GAP:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="lblGAP" runat="server" CssClass="cssText" checkmaster="checkNumber"
                                                            allowempty="true" decimal="2" min="0" Max="10000" ReadOnly="true"></asp:TextBox>
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                        预计转正月份:<br />
                                                        Trade Month:
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:TextBox ID="lblTradeMonth" runat="server" CssClass="cssText" allowempty="true"
                                                            ReadOnly="true"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        &nbsp;
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        &nbsp;
                                                    </td>
                                                    <td align="left" style="width: 15%" valign="middle">
                                                    </td>
                                                    <td align="left" style="width: 35%" valign="middle">
                                                        <asp:Label ID="lblFlag" runat="server" Visible="False"></asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 100%">
                                        <table width="95%" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="left">
                                                    <iewc:TabStrip ID="tabDocument" runat="server" SepDefaultStyle="border-bottom:solid 1px bottom;"
                                                        TabSelectedStyle="border:solid 1px #BBBBBB;border-bottom:none;padding-left:20px;padding-right:20px; background-image:url(../images/BG-Button-09.png);"
                                                        TabHoverStyle="background-image: url(../images/BG-Button-09.png);" TabDefaultStyle="border:solid 1px BBBBBB;padding-left:20px;padding-right:20px;background-image: url(../images/BG-Button-08.png);"
                                                        TargetID="mpTabDocumentPages" Height="25" AutoPostBack="false">
                                                        <iewc:Tab Text="预合同备注(Pre-Contract Comments)"></iewc:Tab>
                                                        <iewc:TabSeparator DefaultStyle="width:100%;borderB-bottom-width:1px; border-bottom-color:#BBBBBB; border-bottom-style:solid;" />
                                                    </iewc:TabStrip>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <iewc:MultiPage ID="mpTabDocumentPages" runat="server" CssClass="mutil_panel_body"
                                                        Width="100%">
                                                        <iewc:PageView ID="DocDetail" runat="server">
                                                            <!--Panel Body-->
                                                            <br />
                                                            <asp:Panel ID="pnlgv" runat="server" HorizontalAlign="Center" Width="100%" Height="100%">
                                                                <asp:GridView ID="gvMain" runat="server" AutoGenerateColumns="False" Width="90%"
                                                                    DataKeyNames="PreContractInfoCommentID" OnRowDataBound="gvMain_RowDataBound">
                                                                    <PagerSettings Visible="False"></PagerSettings>
                                                                    <RowStyle Height="20px" CssClass="table_row_1"></RowStyle>
                                                                    <SelectedRowStyle CssClass="SelectedRow"></SelectedRowStyle>
                                                                    <HeaderStyle CssClass="table_header"></HeaderStyle>
                                                                    <AlternatingRowStyle CssClass="table_row_2"></AlternatingRowStyle>
                                                                    <EmptyDataTemplate>
                                                                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                                            <tr>
                                                                                <td class="panel_header">
                                                                                    <!--标题-->
                                                                                    没有数据(No Comments).
                                                                                    <!--标题-->
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </EmptyDataTemplate>
                                                                    <Columns>
                                                                        <asp:BoundField DataField="PreContractInfoCommentID" HeaderText="PreContractInfoCommentID"
                                                                            InsertVisible="False" ReadOnly="True" SortExpression="PreContractInfoCommentID">
                                                                            <ItemStyle CssClass="hidden"></ItemStyle>
                                                                            <HeaderStyle CssClass="hidden" Wrap="False"></HeaderStyle>
                                                                            <FooterStyle CssClass="hidden"></FooterStyle>
                                                                        </asp:BoundField>
                                                                        <asp:BoundField DataField="DateCreated" HeaderText="DateCreated" SortExpression="DateCreated">
                                                                            <ItemStyle CssClass="hidden"></ItemStyle>
                                                                            <HeaderStyle CssClass="hidden" Wrap="False"></HeaderStyle>
                                                                            <FooterStyle CssClass="hidden"></FooterStyle>
                                                                        </asp:BoundField>
                                                                        <asp:TemplateField ItemStyle-Width="40px">
                                                                            <HeaderTemplate>
                                                                                <input type="checkbox" id="chkAll" name="chkAll" onclick="javascript: return CheckAll(this.checked, this.id);" />
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle Wrap="False"></HeaderStyle>
                                                                            <ItemTemplate>
                                                                                <asp:CheckBox ID="chkSelect" runat="server" onClick="javascript: return CheckAll(this.checked, this.id);" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField ItemStyle-Width="120px">
                                                                            <HeaderStyle Wrap="False"></HeaderStyle>
                                                                            <HeaderTemplate>
                                                                                创建时间<br />
                                                                                Create Date
                                                                            </HeaderTemplate>
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="lnkDateCreated" runat="server" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="CommentPromisedDate" HeaderText="承诺转正时间<br/>Promised Date"
                                                                            SortExpression="CommentPromisedDate" ItemStyle-Width="100px" DataFormatString="{0:yyyy-MM-dd}"
                                                                            HtmlEncode="false" />
                                                                        <asp:BoundField DataField="Comment" HeaderText="备注<br/>Comments" SortExpression="Comment"
                                                                            HtmlEncode="false" />
                                                                        <asp:BoundField DataField="CILAccount" HeaderText="创建人<br/>Creator" SortExpression="CILAccount"
                                                                            ItemStyle-Width="80px" HtmlEncode="false" />
                                                                        <asp:BoundField DataField="ModifiedByName" HeaderText="修改人<br/>Modified By" SortExpression="ModifiedByName"
                                                                            ItemStyle-Width="80px" HtmlEncode="false" />
                                                                        <asp:BoundField DataField="DateModified" HeaderText="修改时间<br/>Modified Date" SortExpression="DateModified"
                                                                            ItemStyle-Width="120px" HtmlEncode="false" />
                                                                        <asp:BoundField DataField="IsRiskDesc" HeaderText="安全/风险<br/>Secure/Risk" SortExpression="IsRiskDesc"
                                                                            ItemStyle-Width="60px" HtmlEncode="false" />
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </asp:Panel>
                                                            <br />
                                                            <table width="90%" border="0" cellpadding="0" cellspacing="0">
                                                                <tr>
                                                                    <td align="right" height="40" valign="middle" style="border-top: 1px; border-top-color: #BBBBBB;
                                                                        border-top-style: dashed;">
                                                                        <asp:Button ID="btnNewComment" runat="server" Text="新增备注 (New Comment)" CssClass="bgButton"
                                                                            OnClientClick="javascript:ShowPage('0');" Width="180px"></asp:Button>
                                                                        <asp:Button ID="btnDelete" runat="server" Text="删除备注 (Delete Comment)" CssClass="bgButton"
                                                                            autopostback="false" Width="180px" OnClick="btnDelete_Click"></asp:Button>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </iewc:PageView>
                                                    </iewc:MultiPage>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <script language="javascript" type="text/javascript">
        var oTitle = document.getElementById("divTitle");
        var oPWin = window.parent;
        if (oPWin != null) {

            var frm = oPWin.document.getElementById("main");
            if (frm != null && oTitle != null) {
                window.attachEvent("onresize", resizeFunc1);
                resizeFunc1();
                divTitle.style.visibility = "hidden";
            }
        }


        function resizeFunc1() {
            var ofrm = window.parent.document.getElementById("main");
            var sHeight = ofrm.document.body.offsetHeight;
            var sWidth = ofrm.document.body.offsetWidth;


            var divReport = document.getElementById("divContent");
            if (divReport != null) {
                divReport.style.width = sWidth - 218;
                divReport.style.height = sHeight - 180;
            }
        }
            
    </script>
</asp:Content>
